package com.lei2j.decorator;

/**
 * Created by lei2j on 2019/1/13.
 */
public abstract class Beverage {

    protected String description;

    protected boolean milk;

    protected boolean soy;

    protected boolean mocha;

    protected boolean whip;

    protected double cost(){
        double milkPrice = 1.1;
        double soyPrice = 2;
        double mochaPrice = 2.5;
        double whipPrice = 4;
        return milkPrice+soyPrice+mochaPrice+whipPrice;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isMilk() {
        return milk;
    }

    public void setMilk(boolean milk) {
        this.milk = milk;
    }

    public boolean isSoy() {
        return soy;
    }

    public void setSoy(boolean soy) {
        this.soy = soy;
    }

    public boolean isMocha() {
        return mocha;
    }

    public void setMocha(boolean mocha) {
        this.mocha = mocha;
    }

    public boolean isWhip() {
        return whip;
    }

    public void setWhip(boolean whip) {
        this.whip = whip;
    }
}
